﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:advgenControls="clr-namespace:AdvGenContact.WPF.Controls"
>
	
	<!--  please rename  -->
	
	<SolidColorBrush Color="#FF656870" x:Key="LeffBorderBrush"/>
	<SolidColorBrush Color="#C0C0C0" x:Key="PathBrush"/>
	
	
	<LinearGradientBrush StartPoint="0,0" EndPoint="1,0" x:Key="LeftHeaderBrush">
		<LinearGradientBrush.GradientStops>
			<GradientStop Color="#FFDADFE6" Offset="0"/>
			<GradientStop Color="White" Offset="0.5"/>
			<GradientStop Color="#FFDADFE6" Offset="1"/>
		</LinearGradientBrush.GradientStops>
	</LinearGradientBrush>
	
	
	
	<!--  please rename end  -->
	
	
	
	<LinearGradientBrush x:Key="MenunBackground" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFD9EDFF" Offset="0"/>
		<GradientStop Color="#FFC0DEFF" Offset="0.445"/>
		<GradientStop Color="#FFC0D9GB" Offset="1" />
		<GradientStop Color="#FFAFD1F8" Offset="0.53"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="BlueBrush" EndPoint="0,1" StartPoint="0,0">
		<GradientStop Color="#63b8d7" Offset="0.0"/>
		<GradientStop Color="#FFF" Offset="1.0"/>
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="BlueBorderBrush" StartPoint="0.5,0" EndPoint="0.5,1">
		<LinearGradientBrush.GradientStops>
			<GradientStop Offset="0.0" Color="#0ea1d7" />
			<GradientStop Offset="1.0" Color="#0ea1d7" />
		</LinearGradientBrush.GradientStops>
	</LinearGradientBrush>
	<SolidColorBrush  x:Key="leftPanel"  Color="#edf4fa" />
	<Style x:Key="BluePanel" TargetType="{x:Type Grid}" BasedOn="{x:Null}">
		<Setter Property="Background" Value="{StaticResource BlueBrush}"/>
	
	</Style>
	
	<Style x:Key="MainLeftPanel" TargetType="{x:Type TreeView}" BasedOn="{x:Null}">
		<Setter Property="Background" Value="{StaticResource leftPanel}"/>
	
	</Style>
	
	
	<Style TargetType="{x:Type advgenControls:CollapsibleControl}" x:Key="LeftPanel">
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type  advgenControls:CollapsibleControl}">
			
					<Grid x:Name="myNavigationGrid" HorizontalAlignment="Left"   VerticalAlignment="Stretch">
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						
						
						<Border HorizontalAlignment="Stretch" Grid.Row="0" Height="24" DockPanel.Dock="Top" BorderThickness="0,0,0,1" Focusable="False"
						        
						        Background="{DynamicResource LeftHeaderBrush}"
						        BorderBrush="{DynamicResource LeftBorderBrush}">
							<DockPanel HorizontalAlignment="Stretch">
								<TextBlock x:Name="txtHeader" DockPanel.Dock="Right" ></TextBlock>
								<Button x:Name="btnMax" DockPanel.Dock="Right"
								        
								        Width="18" Height="18" Margin="2">
									
									<Button.Content>
										<Path    Stroke="{DynamicResource PathBrush}"
										      Fill="Transparent" Data="M3,0 L0,3 3,6 M6,0 L3,3 6,6"/>
									</Button.Content>
								</Button>
								<Button x:Name="btnMin" DockPanel.Dock="Right"
								        
								        Width="18" Height="18" Margin="2">
									
									<Button.Content>
										<Path    Stroke="{DynamicResource PathBrush}"
										      Fill="Transparent" Data="M0,0 L3,3 0,6 M3,0 L6,3 3,6" />
									</Button.Content>
								</Button>
								
							</DockPanel>
						</Border>
						<Border Grid.Row="1" x:Name="myNavigationBorder1" BorderBrush="{DynamicResource MyDarkBlueSolidBrush}" BorderThickness="0.5,0.5,0.5,0.5" Grid.ColumnSpan="1">
							<Border BorderBrush="{DynamicResource MyBrightBlueSolidBrush2}" BorderThickness="5,5,5,5" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" x:Name="myNavigationBorder2">
								<Border BorderBrush="{DynamicResource MyDarkBlueSolidBrush}" BorderThickness="0.5,0.5,0.5,0.5" Background="#FFFFFFFF" ScrollViewer.HorizontalScrollBarVisibility="Auto" x:Name="myNavigationBorder3">
									<Grid>
										<Grid.RowDefinitions>
											<RowDefinition Height="Auto" />
											<RowDefinition Height="Auto" />
										</Grid.RowDefinitions>
										<ContentPresenter x:Name="PART_ContentPresenter"/>
										<ResizeGrip Grid.Row="1"  HorizontalAlignment="Stretch" Width="Auto" Height="Auto" HorizontalContentAlignment="Right" Margin="0,0,2,2"/>
									</Grid>
								</Border>
							</Border>
						</Border>
						<GridSplitter HorizontalAlignment="Right" VerticalAlignment="Stretch" Width="5" Background="{DynamicResource MyBrightBlueSolidBrush2}" Foreground="{x:Null}" Grid.Column="0" BorderBrush="{DynamicResource MyDarkBlueSolidBrush}" x:Name="myNavigationSplitter" BorderThickness="0,0.5,0.5,0.5"/>
						<Border HorizontalAlignment="Stretch" Grid.Row="2" Height="24" DockPanel.Dock="Bottom" BorderThickness="0,0,0,1" Focusable="False">
						<StackPanel x:Name="inactivePanels" HorizontalAlignment="Stretch">
								
							
							</StackPanel>
						</Border>
					</Grid>
				
				
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	
	</Style>
	
	<ControlTemplate x:Key="HeaderTextblock" TargetType="TextBlock">
		<Grid>
			<Border x:Name="columnHeaderBorder"
			        BorderThickness="1"
			        Padding="3,0,3,0">
				<Border.BorderBrush>
					<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
						<GradientStop Offset="0" Color="#A5A5A5" />
						<GradientStop Offset="1" Color="#4B4B4B" />
					</LinearGradientBrush>
				</Border.BorderBrush>
				<Border.Background>
					<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
						<GradientStop Offset="0" Color="#DEB40A" />
						<GradientStop Offset="1" Color="#FF7F00" />
					</LinearGradientBrush>
				</Border.Background>
				<ContentPresenter HorizontalAlignment="Center"
					VerticalAlignment="Center"
					Name="content" />
			</Border>
		</Grid>
	
	</ControlTemplate>
	
	
	<Style x:Key="{x:Type Menu}"
	       TargetType="{x:Type Menu}">
		
		<Setter Property="OverridesDefaultStyle"
		        Value="True" />
		<Setter Property="SnapsToDevicePixels"
		        Value="True" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Menu}">
					<Border BorderThickness="1">
						<Border.BorderBrush>
							<LinearGradientBrush StartPoint="0,0"
								EndPoint="0,1">
								<LinearGradientBrush.GradientStops>
									<GradientStopCollection>
										<GradientStop Color="{DynamicResource BorderLightColor}"
										              Offset="0.0" />
										<GradientStop Color="{DynamicResource BorderDarkColor}"
										              Offset="1.0" />
									</GradientStopCollection>
								</LinearGradientBrush.GradientStops>
							</LinearGradientBrush>
						
						</Border.BorderBrush>
						<Border.Background>
							<LinearGradientBrush EndPoint="0.5,1"
								StartPoint="0.5,0">
								<GradientStop Color="{DynamicResource ControlLightColor}"
								              Offset="0" />
								<GradientStop Color="{DynamicResource ControlMediumColor}"
								              Offset="1" />
							</LinearGradientBrush>
						</Border.Background>
						<StackPanel ClipToBounds="True"
						            Orientation="Horizontal"
						            IsItemsHost="True" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

 <Style x:Key="BaseButtonStyle" TargetType="{x:Type Button}">
    <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
    <Setter Property="Background" Value="#ffffff"/>
    <Setter Property="BorderBrush" Value="#cccccc"/>
    <Setter Property="BorderThickness" Value="1"/>
    <Setter Property="Foreground" Value="#333333"/>
    <Setter Property="HorizontalContentAlignment" Value="Center"/>
    <Setter Property="VerticalContentAlignment" Value="Center"/>
    <Setter Property="Padding" Value="16,3,16,3"/>
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
                <Border Name="Chrome"
                                Background="{TemplateBinding Background}"
                                BorderBrush="#7ec0ee"
                                BorderThickness="{TemplateBinding BorderThickness}"
                                SnapsToDevicePixels="true">
                    <ContentPresenter Name="Presenter" Margin="{TemplateBinding Padding}"
                                    VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                    HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                    RecognizesAccessKey="True"
                                    SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
                </Border>
                <ControlTemplate.Triggers>
                    <Trigger Property="IsEnabled" Value="false">
                        <Setter Property="Foreground" Value="#333333" />
             
                    </Trigger>
                    <Trigger Property="IsMouseOver" Value="True">
                        <Setter Property="Background" Value="#dddddd" />
                        <Setter Property="BorderBrush" Value="#cccccc" />
                        <Setter Property="Foreground" Value="#333333" />
                    </Trigger>
                    <Trigger Property="IsPressed" Value="True">
                        <Setter Property="Background" Value="#1ba1e2" />
                        <Setter Property="BorderBrush" Value="#1ba1e2"/>
                        <Setter Property="Foreground" Value="#ffffff"/>
                    </Trigger>
                    <Trigger Property="IsFocused" Value="true">
                        <Setter TargetName="Chrome" Property="BorderBrush" Value="#1ba1e2" />
                    </Trigger>
                </ControlTemplate.Triggers>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>
</ResourceDictionary>